#_*_coding:utf-8_*_
class scool(object):
    def __index__(self,address,kc):
        self.address = address
        self.kc = kc
    def kecheng(self):
        linux = ['linux','800','12month','alex']
        py = ['python','1800','16month','alex']
        if self.kc == 'linux':
            print(linux)
        elif self.kc == 'py':
            print(py)
class scoolMenber(object):
    def __init__(self,name,sex,age):
        self.name = name
        self.sex =sex
        self.age = age
    number = 0 #人数为0
    def enjon(self):
        scoolMenber.number +=1
        print('注册人数为%d'%scoolMenber.number)
    def tell(self):
        pass

class sutdent(scoolMenber):
    def __init__(self,name,sex,age,banji,sid):
        super(sutdent, self).__init__(name,sex,age)
        self.banji = banji
        self.sid = sid

    def tell(self):
         '''自我介绍方法'''
         msg = '''Hi, my name is [%s], I'm studying [%s] in [%s]!''' % (self.name, self.banji, 'Oldboy')
         print(msg)

class teach(scoolMenber):
    def __init__(self,name,sex,age,course, salary):
        super(teach, self).__init__(name,sex,age)
        self.course = course
        self.salary = salary
    def tell(self):
        print('teach %s is tell!!'%self.name)

    def teaching(self):
        print('teach %s is teaching!!'%self.name)


a = sutdent('aaa','22','男','py','123')
a.tell()

